import ajax from '@/utils/request'
// channel_id频道id
// timestamp 时间戳
export const getChannelArticles = (channelid, timestamp) => {
  return ajax({
    url: '/app/v1_1/articles',
    method: 'GET',
    params: {
      channel_id: channelid,
      timestamp: timestamp,
      with_top: 1
    }
  })
}

export const getDetail = articleId => {
  return ajax({
    method: 'GET',
    url: '/app/v1_0/articles/' + articleId
  })
}
